package org.fhawk.tinyspring.mvc.bean;


import java.lang.reflect.Method;

/**
 * Created by tuo on 9/5/2016.
 * mvc处理器
 */
public class Handler {

    private Class<?> targetClazz;
    private Method targetMethod;

    public Handler() {
    }

    public Handler(Class<?> targetClazz, Method targetMethod) {
        this.targetClazz = targetClazz;
        this.targetMethod = targetMethod;
    }



    public Class<?> getTargetClazz() {
        return targetClazz;
    }

    public void setTargetClazz(Class<?> targetClazz) {
        this.targetClazz = targetClazz;
    }

    public Method getTargetMethod() {
        return targetMethod;
    }

    public void setTargetMethod(Method targetMethod) {
        this.targetMethod = targetMethod;
    }


    @Override
    public String toString() {
        return "{" +
            "targetClazz=" + targetClazz +
            ", targetMethod=" + targetMethod.getName() +
            '}';
    }
}
